//
//  LoginVC.m
//  testapp
//
//  Created by Heng Yue on 2020/3/6.
//  Copyright © 2020 Heng Yue. All rights reserved.
//

#import "LoginVC.h"

@interface LoginVC ()

@end

@implementation LoginVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}
- (IBAction)Login:(id)sender {
     
   
    [self  dismissViewControllerAnimated:YES completion:^{
        UINavigationController *root=(UINavigationController*)[UIApplication sharedApplication].keyWindow.rootViewController;
        [root popToRootViewControllerAnimated:YES];
    }];
}
-(void)dealloc{
    NSLog(@"%@",NSStringFromSelector(_cmd));
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
